import request from '@/utils/request'

export const getUserPointRecords = (userId, params) => {
  return request({
    url: `/points/user/${userId}`,
    method: 'get',
    params
  })
}

export const adjustPoints = (data) => {
  return request({
    url: '/points/adjust',
    method: 'post',
    data
  })
}

export const getUserTotalPoints = (userId) => {
  return request({
    url: `/points/user/${userId}/total`,
    method: 'get'
  })
}

